package com.forenow.demo.demo4;

public class Penguin extends Pet {

    @Override
    public void toHospital() {
        this.setHealth(60);
    }

    @Override
    public void eat() {
        System.out.println("penguin----eat");
    }
    public  void swimming(){
        System.out.println("swimming");
    }
}

